// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import axios from 'axios'

import {routerMode} from './config/env'
import './config/rem'
import FastClick from 'fastclick'

// FastClick.attach(document.body)
if ('addEventListener' in document) {
    document.addEventListener('DOMContentLoaded', function() {
        FastClick.attach(document.body);
    }, false);
}

import { Lazyload, InfiniteScroll, CellSwipe, Spinner, Popup, Picker, DatetimePicker } from 'mint-ui'
import 'mint-ui/lib/style.css'

Vue.prototype.$axios = axios
Vue.use(Lazyload);
Vue.use(InfiniteScroll);
Vue.component(CellSwipe.name, CellSwipe);
Vue.component(Spinner.name, Spinner);
Vue.component(Popup.name, Popup);
Vue.component(Picker.name, Picker);
Vue.component(DatetimePicker.name, DatetimePicker);

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
	el: '#app',
	router,
	store,
	components: { App },
	template: '<App/>'
})
